﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Paway.Windows.Test
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        private void panel3_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(e.Graphics,
                                this.panel3.ClientRectangle,
                                Color.White,//左
                                1,
                                ButtonBorderStyle.None,
                                Color.DarkGray,//上
                                1,
                                ButtonBorderStyle.Solid,
                                Color.White,//右
                                1,
                                ButtonBorderStyle.None,
                                Color.DarkGray,//下
                                1,
                                ButtonBorderStyle.Solid);
        }

        private void panel4_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(e.Graphics,
                                this.panel4.ClientRectangle,
                                Color.White,//左
                                1,
                                ButtonBorderStyle.None,
                                Color.DarkGray,//上
                                1,
                                ButtonBorderStyle.None,
                                Color.LightSeaGreen,//右
                                1,
                                ButtonBorderStyle.Solid,
                                Color.White,//下
                                1,
                                ButtonBorderStyle.None);
        }
        private void panel7_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(e.Graphics,
                                this.panel7.ClientRectangle,
                                Color.LightSeaGreen,//左
                                1,
                                ButtonBorderStyle.Solid,
                                Color.DarkGray,//上
                                1,
                                ButtonBorderStyle.None,
                                Color.LightSeaGreen,//右
                                1,
                                ButtonBorderStyle.None,
                                Color.White,//下
                                1,
                                ButtonBorderStyle.None);
        }
    }
}
